/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//package martino;

/**
 *
 * @author sempere
 */

public class Symbol {
    
    public enum type{
        flow,
        string,
        pushbutton,
        pressurebutton
    }   
    
    public String name;
    public type stype;
    public int group;
    public String port;
    //public String state;
    public int channel;
    public int minValue,maxValue;
    
    public Symbol(String name, type t){
        
        this.name = name;
        this.stype = t;
        group = SymbolTable.currentGroup;               

        minValue = -1;
        maxValue = -1;
	channel = 0;
    }
    
    public Symbol(String name, type t, String port){
 
        this.name = name;
        this.stype = t;
        this.port = port;
        group = SymbolTable.currentGroup;
        minValue = -1;
        maxValue = -1;
	channel = 0;
    }
      
    public Symbol(String name, type t, String port, int minValue, int maxValue){
        this.name = name;
        this.stype = t;
        group = SymbolTable.currentGroup;
        this.port = port;
        this.minValue = minValue;
        this.maxValue = maxValue;
	channel = 0;
    }
    

    
  
        
    
}
